package com.aegean.MonitorExamSYS.center.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.aegean.MonitorExamSYS.center.component.SelectCity;
import com.opensymphony.xwork2.ActionSupport;
@Controller("SelectCityInfo")
@Scope("prototype")
public class SelectCityInfo extends ActionSupport {
	@Resource
	CenterBusiness business;
	private List<SelectCity> citys;
    private int total;
	public List<SelectCity> getCitys() {
		return citys;
	}

	public void setCitys(List<SelectCity> citys) {
		this.citys = citys;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		citys=business.showCitys();
		total=citys.size();
		return SUCCESS;
	}

}
